package com.study.api;

import io.swagger.annotations.Api;
import lombok.SneakyThrows;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhuzi
 * 2024/12/2 17:39
 */
@Api(tags = "首页")
@Slf4j
@RestController
@RequestMapping("")
public class IndexController {

    @SneakyThrows
    @GetMapping
    public void index(javax.servlet.http.HttpServletResponse response) {
        response.sendRedirect("/doc.html");
    }
}
